

//
//  JMHomeView.m
//  jiMuOperate
//
//  Created by 胡梅方 on 16/5/3.
//  Copyright © 2016年 jinXinFengLi. All rights reserved.
//

#import "JMHomeView.h"
#define homeFont 14
@implementation JMHomeView
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = RGB(248, 74,68);
        CGFloat userImaH = 60;
        UIImageView *userImag = [ARC createImageViewWithFrame:CGRectMake(130, 40, userImaH, userImaH) ImageName:@""];
        self.headImageV = userImag;
        userImag.backgroundColor = [UIColor clearColor];
        [self addSubview:userImag];
        CGFloat nameY = 110;
        CGFloat nameX = 160;
        CGFloat nameW = 80;
        UILabel *nameL = [ARC createLabelWithFrame:CGRectMake(nameW, nameY, nameW, 20) Font:homeFont Text:nil];
        nameL.textColor = [UIColor whiteColor];
        self.nameLabel = nameL;
        self.nameLabel.textAlignment = NSTextAlignmentCenter;
//        self.nameLabel.text = @"钱多多";
        [self addSubview:nameL];
        
        UILabel *levelL = [ARC createLabelWithFrame:CGRectMake(nameX, nameY, nameW, 20) Font:homeFont Text:nil];
        levelL.textColor = [UIColor whiteColor];
        self.gradeLabel = levelL;
        self.gradeLabel.textAlignment = NSTextAlignmentCenter;
//        self.gradeLabel.text = @"L10级";
        [self addSubview:levelL];
        
        
        
        UILabel *sceneL = [ARC createLabelWithFrame:CGRectMake(40, nameX, nameW, 20) Font:homeFont Text:nil];
        sceneL.textColor = [UIColor whiteColor];
        self.sceneLabel = sceneL;
//        sceneL.text = @"松果乐园社员";
        [self addSubview:sceneL];
        
//        UILabel *memPointsL = [ARC createLabelWithFrame:CGRectMake(108, 170, 54, 20) Font:homeFont Text:nil];
//        memPointsL.textColor = [UIColor whiteColor];
//        self.memPointsLab = memPointsL;
//        [self addSubview:memPointsL];
////        memPointsL.text = @"社员积分:";
//        
//        UILabel *memPointsNumL = [ARC createLabelWithFrame:CGRectMake(162, 170, 54, 20) Font:homeFont Text:nil];
//        memPointsNumL.textColor = [UIColor whiteColor];
//        self.memPointNum = memPointsNumL;
//        [self addSubview:memPointsNumL];
////         memPointsNumL.text = @"1324个";
      
        
        UILabel *teamRank = [ARC createLabelWithFrame:CGRectMake(nameX, nameX, 80, 20) Font:homeFont Text:nil];
        teamRank.textColor = [UIColor whiteColor];
        self.teamRankLab = teamRank;
        [self addSubview:teamRank];
        teamRank.text = @"团队排名:";
        
        UILabel *teamRankNum = [ARC createLabelWithFrame:CGRectMake(240, nameX, 80, 20) Font:homeFont Text:nil];
        teamRankNum.textColor = [UIColor whiteColor];
        self.teamRankNum = teamRankNum;
        [self addSubview:teamRankNum];
        
        teamRank.textAlignment = NSTextAlignmentRight;
        teamRankNum.textAlignment = NSTextAlignmentLeft;
        
        self.headImageV.frame = [ToolViewAndData MyAutoLayout:self.headImageV];
        self.nameLabel.frame = [ToolViewAndData MyAutoLayout:self.nameLabel];
        
        self.gradeLabel.frame = [ToolViewAndData MyAutoLayout:self.gradeLabel];
        self.sceneLabel.frame = [ToolViewAndData MyAutoLayout:self.sceneLabel];
//        self.memPointsLab.frame = [ToolViewAndData MyAutoLayout:self.memPointsLab];
        self.teamRankLab.frame = [ToolViewAndData MyAutoLayout:self.teamRankLab];
        self.teamRankNum.frame = [ToolViewAndData MyAutoLayout:self.teamRankNum];
        
        
        

    }
    return self;
}
@end
